package com.qqs.stock.dao;

import com.qqs.stock.exception.UniqueException;

public interface DeductStockDao {
    int selectCountByWareId(long wareId);

    boolean deduct(long wareId, int count);

    boolean increase(long wareId, int count);

    void insertBill(long orderId, long wareId, int count) throws UniqueException;

    int selectBillCount(long orderId, long wareId);

    void openTransaction();

    void submitTransaction();

    void rollbackTransaction();
}
